<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!-- 顶部菜单模块 -->
<div class="box">
    <div class="inner whiteGL">
        <div class="left">
            <a class="mix" href="">小米商城</a>
            <a href="">MIUI</a>
            <a href="">loT</a>
            <a href="">云服务</a>
            <a href="">水滴</a>
            <a href="">金融</a>
            <a href="">有品</a>
            <a class="max" href="">Select Region</a>
        </div>
        <div class="right">
            <!-- 没登陆就显示登录/注册 -->
            <a class="mix" href="/login" th:if="${session.currentUser == null}">登录</a>
            <a href="/member/register" th:if="${session.currentUser == null}">注册</a>
            <!-- 登陆过就显示用户名/退出 -->
            <a class="max" href="/member/page" th:text="${session.currentUser.memberName}" th:if="${session.currentUser != null}"></a>
            <a href="/logout" th:if="${session.currentUser != null}">退出</a>
            <!-- 购物车一直有 -->
            <a href="/cart/page"><img src="../img/cart.jpg" alt=""></a>
        </div>
    </div>
</div>
<div class="logo">
    <div class="logo_left">
        <div>
            <a href="index.html" title="小米官网"><img class="xiaomi" src="../img/logo.jpg"></a>

        </div>
    </div>
    <ul class="logo_center orangeGL">
        <a href="">小米手机</a>
        <a href="">红米</a>
        <a href="">笔记本</a>
        <a href="">电视</a>
        <a href="">盒子</a>
        <a href="">新品</a>
        <a href="">路由器</a>
        <a href="">智能硬件</a>
        <a href="">服务</a>
        <a href="">社区</a>
    </ul>
    <formv class="logo_right">
        <div class="logo_input"><input type="text">
            <div class="logo_input_div">
                <a class="logo_input_a" href="">小米5 新品</a>
                <a class="logo_input_a" href="">小米Note 3</a>
            </div>
        </div>
        <a class="logo_right_a"><img src="../img/find.jpg"></a>
    </formv>
</div>

</body>
</html>